package edu.mit.media.fv.components
{
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	import flash.text.TextField;

	public class AQCircleButton2 extends MovieClip
	{
		//var _label:TextField;
		var _icon:DisplayObject;
		
		public function AQCircleButton2()
		{
			super();
		}
		
		public function set icon(icon:DisplayObject):void{
			if(this._icon != null){
				this.removeChild(this._icon);
			}
			this._icon = icon;
			if(this._icon!= null){
				this._icon.width = this.width/2;
				this._icon.height = this.width/2;
				this._icon.x = this.width/4;
				this._icon.y = this.width*0.42;
				this.addChild(this._icon);
			}
		}
		public function set text(t:String){
			trace("setting text :"+t);
			//this._label.text = t;
			this._label.text = t;
		}
		public function get text():String{
			return this._label.text;
		}
		
	}
}